import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from "axios";
import qs from 'qs';
import {VueJsonp} from 'vue-jsonp'
import md5 from 'js-md5';
import "bootstrap-icons/font/bootstrap-icons.css"
import VueQr from 'vue-qr';

Vue.component('VueQr', VueQr);
Vue.prototype.md5 = md5;
Vue.use(VueJsonp);
Vue.prototype.qs = qs;
Vue.config.productionTip = false
Vue.use(ElementUi)
Vue.prototype.axios = axios;//引入axios框架
Vue.config.silent = true
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')

Vue.prototype.$equipment = function () {
    let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
    return flag;
}